home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / utils / whatis63.lzh / WHATIS63.DOC < prev   
Text File  |  1992-07-29  |  25KB  |  569 lines

  1.                       WHATIS File Identifier v6.3
  2.                   Copyright (c)1989-92 by Bill Aycock
  3.  
  4.  
  5. WHATIS is a simple program that will identify over 125 different types of
  6. files. It is mouse-driven and easy to use; everything is done from a single
  7. dialog box.  Whatis runs in any resolution on any ST or TT, and uses under 17K
  8. of your system's RAM.  This version will work as either a standalone program or
  9. as a desk accessory (just rename the program file to .PRG or .ACC as you wish).
  10.  
  11. When run as a desk accessory, versions 5.2 and up of Whatis can act as a
  12. "Whatis server" - specially-written programs can use Whatis to identify file
  13. types for them!  (See the Whatis Server appendix for details.)  Starting with
  14. version 5.3, you may also pass a filespec to Whatis on the command line to run
  15. it as a TTP-like program.
  16.  
  17.  
  18. Why use Whatis?  Let's say you're on your favorite BBS, and download a file
  19. called SUPER.ARC.  You fire up your Arc Shell to extract the file, and it says
  20. "I don't know how to handle this file!".  Whip out Whatis and take a look, and
  21. you find out the file is really an LHarc archive - the uploader used the wrong
  22. extender!  Just rename the file to SUPER.LZH and you're all set.
  23.  
  24. Another, darker scenario... a virus sneaks into your system and erases your
  25. hard drive's directory.  Fortunately, you have a program that can recover your
  26. files - unfortunately, it names all the files FILE0001, FILE0002, and so on!
  27. Spend a little time with Whatis, and you may not figure out each file's
  28. original name, but at least you'll know which are programs, which are .PI1s,
  29. which are Calamus docs... a real help if you need it.
  30.  
  31.  
  32.  
  33.       Using Whatis
  34.       ------------
  35.  
  36.  
  37. Either run Whatis as a GEM program or choose Whatis from the Desk menu, and
  38. the Whatis dialog box will appear.  Under the title bar you'll see three boxes
  39. for a filename and file type, a file's header bytes, and the header byte
  40. display mode. At the bottom of the dialog are three action buttons, marked
  41. "Choose a file", "Next file", and "Exit".
  42.  
  43. To use Whatis, either click on "Choose a file" or just press C or Return or
  44. the down arrow. You'll be presented with the GEM file selector; use the file
  45. selector to choose your mystery file.  Whatis will read the first few bytes of
  46. the file in question and check if these bytes match a known "signature" of a
  47. specific type of file.  (Note: Whatis needs at least eight bytes to make a
  48. reasonable guess of the file type; if your file is too small, you'll see an
  49. error message and you'll get a chance to choose another file.)
  50.  
  51. Then you'll return to the Whatis box.  The small message box in the main
  52. title bar displays the path you selected.  The first large box under the title
  53. bar shows the name of the file you chose, its size (in small numbers on the
  54. upper right), and the type of file it is.  If Whatis doesn't recognize the file
  55. type, it will show up as "text or data".  The next box, labeled "header bytes",
  56. displays the first few bytes of your file.  You can view this file header in
  57. either hexadecimal or ASCII form;  click the "ASCII" or "HEX" button, as
  58. desired, in the small box under the header byte display, or press the left or
  59. right arrow keys.
  60.  
  61. If you used any wildcards when you selected your mystery file, the "Next
  62. file" button at the bottom of the screen will be enabled (not grayed out), and
  63. it will be the default button (signified by a thicker border).  To check the
  64. next file that matches the filename pattern you chose, simply click this button
  65. or press Return, or the space bar or down arrow.  (Note: files matching the
  66. file mask are NOT displayed in alphabetical order; they appear in the same
  67. order as they are on disk.)
  68.  
  69. From the main dialog you can identify another file, or return to whatever you
  70. were doing by clicking the EXIT button or pressing UNDO or ESCape.  Simple!
  71.  
  72.  
  73. You can reposition the Whatis dialog anywhere on screen.  Click on the title
  74. area in the dialog, hold the mouse button down, and drag the outline wherever
  75. you wish.  When you release the button, the Whatis dialog appears in the new
  76. location.  If Whatis is running as a resident accessory, the new position is
  77. saved between calls.
  78.  
  79.  
  80. A complete list of the file types Whatis can recognize is included at the end
  81. of this document.  Unfortunately, many file types do not contain a unique
  82. signature in the first few bytes; Whatis can't identify such files unless a
  83. certain file type is always a specific size (e.g., Degas .PI? pics).
  84.  
  85. Note that it _is_ possible to fool Whatis.  If a data file happens to start
  86. with the same sequence of bytes as some other file type, it will be identified
  87. incorrectly.  It is also difficult to distinguish between certain types of
  88. files - for example, the signatures of low-rez TINY pics, resource files,
  89. Neochrome pictures, and 8-bit Scrunch files look the same, so the ID box lists
  90. all of those types.  Low-rez TINY pics produced with Vidi-ST sometimes look
  91. identical to SAVEd BASIC (8-bit) files, so both types are listed in that box.
  92.  
  93.  
  94.  
  95.       Whatis and the Command Line
  96.       ---------------------------
  97.  
  98.  
  99. Whatis will accept a file spec on the command line in case you wish to run it
  100. as a TTP-like program.  If you pass Whatis a command line, it will display a
  101. list of the file name and type for all matching files. Your command line can
  102. contain a full filespec, or just a path or filename (which may include
  103. wildcards).  If you don't include a filename, all files in the path you specify
  104. are checked; if you leave out the path, Whatis will check all the files in your
  105. current directory that match the filename.
  106.  
  107. Leading and trailing blanks on the command line are ignored, and if you pass
  108. more than one filespec only the last is used.  Normally Whatis will pause after
  109. every 23 files and after all files have been displayed, and wait for you to
  110. press a key before continuing.  If you press ESC or UNDO at this point, Whatis
  111. will exit even if there are more files to identify.  (If you end the command
  112. line with a plus sign ('+'), Whatis will _not_ perform these pauses.  See the
  113. section below on setting a default pause mode for more information.)
  114.  
  115. Command line mode can be useful if you wish to run Whatis from a CLI (command
  116. line interface), or from within a terminal program such as Flash.  To run
  117. Whatis from within Flash, enter a command like this on the command line:
  118.  
  119.             Command> exec whatis e:\today\*.*
  120.  
  121. This command will make Whatis check every file in your E:\TODAY\ folder and
  122. display a line showing the filename and file type.  From a real CLI, enter
  123.  
  124.             whatis e:\today\*.*
  125.  
  126. and Whatis will show you the same display, then wait for you to press a key.
  127.  
  128.  
  129. NOTE: If the command line you pass is empty, or contains all blanks or just a
  130. plus sign, Whatis will display its dialog box just as if you had run it as a
  131. standard GEM program.  If you've run Whatis as a real TTP program, the mouse
  132. may be turned off when the dialog appears.  If this happens, you may be able to
  133. run Whatis using the keyboard equivalents instead of the mouse (UNDO to exit,
  134. RETURN to select a file, etc.).  This is different from the behaviour of a real
  135. TTP-only program, which is the reason for the term "TTP-like".
  136.  
  137.  
  138.  
  139.       Whatis and Data Diet
  140.       --------------------
  141.  
  142.  
  143. Data Diet is Double Click Software's excellent program for saving huge gobs
  144. of space on your hard disk.  Although Whatis can recognize DD 'dietized' files,
  145. there's a catch- you can't have DD active in your system to find one!!  The
  146. reason is simple... Data Diet acts behind the scenes.  When a program (e.g.,
  147. Whatis) reads a file, DD quickly and silently decodes the file to its original
  148. form before the program gets the data.  That means there's no DD identifier to
  149. find, so Whatis reports the actual file type.
  150.  
  151.  
  152.  
  153.       Setting a Default Path and Pause Mode
  154.       -------------------------------------
  155.  
  156.  
  157. When you run Whatis, the file selector normally comes up preset to the root
  158. directory of the drive Whatis loaded from.  But if you normally download files
  159. to a particular folder